package com.myapp.struts.modele;

import java.util.ArrayList;
import java.util.List;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author jackson
 */
public class Assiste {
    
    private Cours cours;
    private Etudiant etudiant;
    private String presence;
    
    private String present = "Present";
    private String absent="Absent";
    private String excuse="Excuse";
    
    private ArrayList<String> etat =new ArrayList();

    
    public Assiste() {
        etat.add(present);
        etat.add(absent);
        etat.add(excuse);
    }

    public Assiste(Cours cours, Etudiant etudiant, String presence) {
        this.cours = cours;
        this.etudiant = etudiant;
        this.presence = presence;
    }

    public ArrayList<String> getEtat() {
        return etat;
    }

    public void setEtat(ArrayList<String> etat) {
        this.etat = etat;
    }

    public String getPresent() {
        return "Present";
    }

    public void setPresent(String present) {
        this.present = present;
    }

    public String getAbsent() {
        return "Absent";
    }

    public void setAbsent(String absent) {
        this.absent = absent;
    }

    public String getExcuse() {
        return "Excuse";
    }

    public void setExcuse(String excuse) {
        this.excuse = excuse;
    }
    
    public Cours getCours() {
        return cours;
    }

    public void setCours(Cours cours) {
        this.cours = cours;
    }

    public Etudiant getEtudiant() {
        return etudiant;
    }

    public void setEtudiant(Etudiant etudiant) {
        this.etudiant = etudiant;
    }

    public String getPresence() {
        return presence;
    }

    public void setPresence(String presence) {
        this.presence = presence;
    }
    
}
